package team.scau.laboratory_repair.modules.po;

import lombok.*;
import team.scau.laboratory_repair.common.base.BaseModel;

import javax.persistence.*;
import java.sql.Timestamp;

@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "lab_area")
public class Area extends BaseModel {

    @Builder
    public Area(Long id, Timestamp createTime, Timestamp updateTime, Timestamp deleteTime, Boolean valid, String name, Long manager, String staffs) {
        super(id, createTime, updateTime, deleteTime, valid);
        this.name = name;
        this.manager = manager;
        this.staffs = staffs;
    }

    @Column
    private String name;
    @Column
    private Long manager;
    @Column
    private String staffs;
}
